package com.greensam.pixelengine.service;

import com.greensam.pixelengine.pojo.base.PaginationResponse;
import com.greensam.pixelengine.pojo.entity.SpaceUserPo;
import com.greensam.pixelengine.pojo.query.SpaceUserPageQuery;

import java.util.List;
import java.util.Optional;

/**
 * @author Ma Chengrui
 * @since 2025/9/22 14:22
 */
public interface SpaceUserDataService {

    PaginationResponse<SpaceUserPo> pageSpaceUser(SpaceUserPageQuery pageQuery);

    Optional<SpaceUserPo> getSpaceUserById(Long id);

    Optional<SpaceUserPo> getSpaceUserByUserId(Long userId);

    Optional<SpaceUserPo> getSpaceUserByUserIdAndSpaceId(Long userId, Long spaceId);

    SpaceUserPo save(SpaceUserPo spaceUserPo);

    List<SpaceUserPo> listSpaceUserByUserId(Long userId);
}
